package cs.upt.awp.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cs.upt.awp.dao.UsersDAO;
import cs.upt.awp.data.User;

public class TravelUsersServices {
	
	@Autowired
	UsersDAO usersDao;
	
	
	public boolean addEntity(User user) throws Exception {
		return usersDao.addEntity(user);
	}

	
	public User findByUserName(String username) throws Exception {
		return usersDao.findByUserName(username);
	}

	
	public List<User> getEntityList() throws Exception {
		return usersDao.getEntityList();
	}

	
	public boolean deleteEntity(long id) throws Exception {
		return usersDao.deleteEntity(id);
	}

}
